//
//  ALShopsTableViewCell.m
//  Ummy.G
//
//  Created by 安林 on 16/10/5.
//  Copyright © 2016年 安林. All rights reserved.
//

#import "ALShopsTableViewCell.h"
#import "UIImageView+WebCache.h"
#import "ALShopDown.h"

@implementation ALShopsTableViewCell


- (void)setModel:(ALShopDown *)model{

    _model = model;
    
    //添加图片
    //[_Img sd_setImageWithURL:[NSURL URLWithString:model.frontImg]];
    
    //标题
    _title.text = model.name;
    
    //评价
    _markNum.text = [NSString stringWithFormat:@"%@",model.markNumbers];
    
    //种类
    _type.text = model.cateName;
    
   // NSLog(@"%@",model.avgScore);
    //距离
    _distance.text = [NSString stringWithFormat:@"%@",model.avgScore];
    //地址
    _location.text = model.areaName;
    
    
}



- (void)awakeFromNib {
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}


+(instancetype)loadALShopsTableViewCell{
    return [[[NSBundle mainBundle]loadNibNamed:@"ALShopsTableViewCell" owner:nil options:nil]firstObject];
}

@end
